package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Objects;

/**
 * 座位信息对象 gf_seat
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
public class GfSeat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 座位id */
    private Long seatId;

    /** 列车编号 */
    @Excel(name = "列车编号")
    private String trainId;

    /** 车厢号 */
    @Excel(name = "车厢号")
    private String carriageName;

    /** 座位号 */
    @Excel(name = "座位号")
    private String seatNum;

    /** 座位状态 */
    @Excel(name = "座位状态")
    private String seatStatus;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDel;

    public void setSeatId(Long seatId) 
    {
        this.seatId = seatId;
    }

    public Long getSeatId() 
    {
        return seatId;
    }
    public void setTrainId(String trainId) 
    {
        this.trainId = trainId;
    }

    public String getTrainId() 
    {
        return trainId;
    }
    public void setCarriageName(String carriageName) 
    {
        this.carriageName = carriageName;
    }

    public String getCarriageName() 
    {
        return carriageName;
    }
    public void setSeatNum(String seatNum) 
    {
        this.seatNum = seatNum;
    }

    public String getSeatNum() 
    {
        return seatNum;
    }
    public void setSeatStatus(String seatStatus) 
    {
        this.seatStatus = seatStatus;
    }

    public String getSeatStatus() 
    {
        return seatStatus;
    }
    public String getSeatStatusStr()
    {
        return Objects.equals("1", seatStatus) ? "可选择" : "不可用";
    }
    public void setIsDel(Integer isDel)
    {
        this.isDel = isDel;
    }

    public Integer getIsDel() 
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("seatId", getSeatId())
            .append("trainId", getTrainId())
            .append("carriageName", getCarriageName())
            .append("seatNum", getSeatNum())
            .append("seatStatus", getSeatStatus())
            .append("isDel", getIsDel())
            .toString();
    }
}
